body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../pic/cat.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明背景 */
    padding: 10px 50px;
    border-bottom: 1px solid #ddd;
}

.navbar-left h1 {
    margin: 0;
}

.navbar-center {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.navbar-center a {
    margin: 0 20px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.navbar-center a:hover {
    color: #000;
}

.navbar-right {
    display: flex;
    justify-content: flex-end;
}

.navbar-right button {
    margin-left: 10px;
    padding: 10px 20px;
    border: none;
    background-color: #333;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

.navbar-right button:hover {
    background-color: #555;
}

.container {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9); /* 半透明背景 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.article {
    background-color: #fff;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.article h2 {
    margin: 0 0 10px;
}

.article p {
    margin: 0 0 20px;
    color: #666;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Center align items vertically */
    color: #999;
}

.article-footer span {
    margin-right: 10px;
}

.article-footer button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.article-footer button:hover {
    background-color: #0056b3;
}

.category-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    color: #333;
    font-weight: bold;
}
